package com.example.food03.bool;


import com.example.food03.MainActivity3;
import com.example.food03.R;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ListAdapter3_1 {
    public ArrayList<Map<String,Object>> list3;
   /* public String list[]= {"    服务","   摇一摇","  幸运大转盘","    钱包","   设置"};
    public String list2[]={"    服务","   摇一摇","  幸运大转盘","    钱包","   设置"};*/
   public String list[]= new String[100];
    public String list2[]=new String[100];
    public int intlist[]=new int[100];
    /*public int intlist[]={R.drawable.ic_service,R.drawable.ic_yaoyiyao,R.drawable.ic__lucky_2,R.drawable.ic_money,R.drawable.ic_settings};*/
    //获取List数据对象
    public ListAdapter3_1(){

    }
    public List<Map<String,Object>> getData(){
        //建立List对象--具体的ArrayList对象
        list3=new ArrayList<Map<String,Object>>();
        //List中存放的Map对象,由多个<键,值>对构成--一个Map对象对应ListView中的一行
        Map<String, Object> map;
        list= MainActivity3.username3_1[WxServiceAdapter_3_3.o];
        list2=MainActivity3.comment3_1[WxServiceAdapter_3_3.o];
       // intlist=MainActivity3.userid3_1;
        for(int i=0;i<list.length;i++){
        map=new HashMap<String,Object>();
        map.put("title", list[i]);
       map.put("ii",list2[i]);
        map.put("img", intlist[i]);
        list3.add(map);
        }
        return list3;
    }
}
